const app = getApp();
Page({
  data: {
    StatusBar: app.globalData.StatusBar,
    CustomBar: app.globalData.CustomBar,
    schoolData: [
      {
        name: "高新区启动教学点",
        photo: "https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg",
        addr: "雁塔区清华科技园启迪之星D座"
      },
      {
        name: "南二环第二教学点",
        photo: "https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg",
        addr: "雁塔区清华科技园启迪之星D座"
      },
      {
        name: "小寨赛格国际教学点",
        photo: "https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg",
        addr: "雁塔区清华科技园启迪之星D座"
      },
      {
        name: "大雁塔第一教学点",
        photo: "https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg",
        addr: "雁塔区清华科技园启迪之星D座"
      }
    ]
  },
  clickSchool(e) {
    let schoolData = e.currentTarget.dataset.school;
    console.log(schoolData)
    wx.navigateTo({
      url: '/pages/school/details/details'
    })
  }

})